use syn::DeriveInput;
use proc_macro2::TokenStream;
use quote::quote;

pub fn expand_derive_message(ast: &DeriveInput) -> TokenStream {
    let name = &ast.ident;
    let (impl_generics, try_generics, where_cause) = &ast.generics.split_for_impl();
    quote! {
        impl #impl_generics ::the_world_game_core::Message for #name #try_generics #where_cause {
             type Result = ();
        }
    }
}
